<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-doctype" data-options="border:false;width:100%">
  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		
		<p>
			<span class="badge">提示</span>
			在此你可以对<span class="label-info"><strong>文档分类</strong></span>进行编辑!
		</p>
	</div>
		
    <div id="tb-doctype" style="padding:2px 0">
		<table cellpadding="0" cellspacing="0"> 
			<tr>
				<td style="padding-left:2px" class="list-btn">
			
				</td>
			</tr>
		</table>
	</div>
	<table id="doctype-dg" class="easyui-treegrid dg-type" 
		data-options="rownumbers:true,
		animate: true,
		collapsible: true,					
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',
		treeField: 'name',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		toolbar:'#tb-doctype'">
		
		<thead>						
			<tr>
				<th field="ck" checkbox="true" ></th>
				<th field="name" width="100" align="left" halign="center">分类名称</th>
				<th field="id" width="30" align="center">分类编号</th>
				<th field="sortedid" width="30" align="center">排序号</th>	
				<th field="bizcode" width="60" align="center">分类编码</th>
				<th field="fullBizcode" width="60" align="center">完整编码</th>			
						
				<th field="comment" width="60" align="center">备注</th>							
			</tr>
		</thead>
		
	</table>
	  
  <div id='doctype-win' class="easyui-window" style="width:600px;height:400px;" 
  	data-options="modal:true,closed:true" >
  		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 10px;">
			<div id="tb-doctypeedit" style="height:auto;width:auto">
				<div style="margin-bottom:5px">				
				</div>  		
		    </div>
			<form id="dept-form" method="post">		
				<fieldset>								
					<input name="id" id="id"  type="hidden"/>
					<input name="parentName" id="parentName"  type="hidden"/>
					<input name="owner_deptid" id="owner_deptid"  type="hidden"/>
					<input name="created" id="created"  type="hidden"/>
					<input name="creater" id="creater"  type="hidden"/>
					<input name="status" id="status"  type="hidden"/>
					 <table>
						 <tr>						 	
						    <th>分类名称</th>
							<td><input name="name" id="name" placeholder="请输入组织名称" class="easyui-textbox easyui-validatebox" type="text" data-options="required:true"/></td>
							<th>栏目名称</th>
							<td><input id="show_title" name="show_title" type="text" class="easyui-textbox easyui-validatebox"/></td>
						 </tr>
						 <tr>
						    <th>业务编码</th>
							<td><input name="bizcode" id="bizcode" type="text" class="easyui-textbox easyui-validatebox"/></td>
							<th>完整编码</th>
							<td><input id="fullBizcode" name="fullBizcode" type="text" class="easyui-textbox easyui-validatebox" data-options="disabled:true,editable:false"/></td>
						 </tr>
						 
						 <tr>
						    <th>上级分类</th>
							<td><input id="parentid" name="parentid" type="text" class="easyui-textbox easyui-validatebox"/></td>
							<th>管理科室</th>
							<td><input id="owner_deptName" name="owner_deptName" type="text" buttonText="选择" class="easyui-textbox easyui-validatebox"/></td>
						 </tr>
						 
						 <tr>
						    <th>所属站点</th>
							<td><input id="show_site" name="show_site" type="text" class="easyui-textbox easyui-validatebox"/></td>
							<th>排序编号</th>
							<td><input id="sortedid" name="sortedid" type="text" class="easyui-textbox"/></td>
						 </tr>
						 
						 <tr>
						 	<th>是否公开</th>
							<td>
								<div>
									<input type="radio" id="is_open1" name="is_open" value="1"/>是 
									<input type="radio" id="is_open2" name="is_open" value="0"/>否 
								</div>
							</td>	
						    <th>包含子目录</th>
							<td>
								<div>
									<input type="radio" id="is_open_subtree1" name="is_open_subtree" value="1"/>是 
									<input type="radio" id="is_open_subtree2" name="is_open_subtree" value="0"/>否 
								</div>
							</td>							
						 </tr>
						 
						 <tr>
						 	<th>首页显示</th>
							<td>
								<div>
									<input type="radio" id="home_show1" name="home_show" value="1"/>是 
									<input type="radio" id="home_show2" name="home_show" value="0"/>否 
								</div>
							</td>						    
							<th>首页编号</th>
							<td><input id="home_sort" name="home_sort" type="text" class="easyui-textbox"/></td>
						 
						 </tr>
						  
						 <tr>
							<th>描述</th>
							<td colspan="3"><textarea class="easyui-textbox" name="description"  style="width: 420px;height: 50px;"></textarea></td>
						</tr>
					 </table>
				</fieldset>
			</form>
		</div>
	</div>
</div> 

 
<script>

requirejs(['doctype','domReady!'],function(dept,doc){
	dept.init(doc);
});	

</script>

